using System.ComponentModel.DataAnnotations;

namespace UserManagementService.Users;

/// <summary>
/// 更新用户输入DTO
/// </summary>
public class UpdateUserDto
{
    /// <summary>
    /// 用户名
    /// </summary>
    [Required]
    [StringLength(50)]
    public string UserName { get; set; }

    /// <summary>
    /// 姓名
    /// </summary>
    [StringLength(50)]
    public string Name { get; set; }

    /// <summary>
    /// 姓氏
    /// </summary>
    [StringLength(50)]
    public string Surname { get; set; }

    /// <summary>
    /// 邮箱
    /// </summary>
    [StringLength(100)]
    [EmailAddress]
    public string Email { get; set; }

    /// <summary>
    /// 手机号
    /// </summary>
    [StringLength(20)]
    [Phone]
    public string PhoneNumber { get; set; }
}